import request from "@/utils/request";

// 查询用户详情列表
export function listUserinfo(query, id) {
    return request({
        url: "/biz/userinfo/list/" + id,
        method: "get",
        params: query
    });
}

export function listUserinfo2(query) {
    return request({
        url: "/biz/userinfo/list2",
        method: "get",
        params: query
    });
}
// 查询用户详情详细
export function getUserinfo(id) {
    return request({
        url: "/biz/userinfo/" + id,
        method: "get"
    });
}

// 新增用户详情
export function addUserinfo(data) {
    return request({
        url: "/biz/userinfo",
        method: "post",
        data: data
    });
}

// 修改用户详情
export function updateUserinfo(data) {
    return request({
        url: "/biz/userinfo",
        method: "put",
        data: data
    });
}

// 删除用户详情
export function delUserinfo(id) {
    return request({
        url: "/biz/userinfo/" + id,
        method: "delete"
    });
}

// 导出用户详情
export function exportUserinfo(query) {
    return request({
        url: "/biz/userinfo/export",
        method: "get",
        params: query
    });
}
// 选品列表&&筛选
export function reqlist(query) {
    return request({
        url: "/web/getUserSyncGoods",
        method: "get",
        // data: data
        params: query
    });
}


export function getshoplist(mark) {
    return request({
        url: "/web/getShopListByuid/"+mark,
        method: "get",
    });
}
